package com.artist.service.Impl;

import com.artist.entity.Product;
import com.artist.mapper.ProductMapper;
import com.artist.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("productService")
public class ProductServiceImpl implements ProductService {
    @Autowired
    private ProductMapper productMapper;

    @Override
    public List<Product> list() {
        return productMapper.list();
    }

    @Override
    public void save(Product product) {
            productMapper.save(product);
    }
}
